import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

const store = new Vuex.Store({
    state: {
        // myUser: {
        //     img: 'http://n1.itc.cn/img8/wb/sohulife/2021/05/06/162028122836106972.JPEG',
        //     token: localStorage.getItem('myToken')
        // },
        // myMusic: {}
    },
    mutations: {
        // setUser(state, user) {
        //     localStorage.setItem('myToken', user.token);
        //     state.myUser = user;
        // },
        // setMusic(state, music) {
        //     state.myMusic = music;
        // }
    }
})

export default store;